import { tagService } from '@server/services/tag-service'
import { ApiResponse } from '@data/api'

export default async function getTagList() {
  const tags = await tagService.getTags()

  const response: ApiResponse = {
    success: true,
    data: tags,
  }

  return response
}
